package name.matthewgreet.example2.common; import java.io.Serializable; import java.util.List; /** * <P>Strategy for finding list of ids or other primary keys. This is useful for pages using pagination with some * instance of {@link PageByIdsFinder} lazy loading the current page.</P> * * <DL> * <DT>K</DT><DD>Record primary key or id type returned by this finder.</DD> * </DL> */ @FunctionalInterface public interface IdListFinder<K extends Serializable> extends Serializable { /** * Returns list of ids of record according to implementing search criteria. Null may be returned if nothing found. */ public List<K> getIds() throws Exception; }